package org.example.socketdemos;

import java.io.File;
import java.util.UUID;

public class ClientFile {

    private String fileName;

    private Integer fileNameLen;

    private Long fileSize;

    private String file;

    public ClientFile() {
        this.file = System.getProperty("user.dir") + "/" + System.currentTimeMillis() + ".txt";
        try {
            File file = new File(this.file);
            if (!file.exists()) {
                file.createNewFile();
            }
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public Integer getFileNameLen() {
        return fileNameLen;
    }

    public void setFileNameLen(Integer fileNameLen) {
        this.fileNameLen = fileNameLen;
    }
}
